<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script type="text/javascript" th:src="@{/asserts/scripts/My97DatePicker/WdatePicker.js}"></script>
</head>
<body>
<div>
    <div>
        <h2> 图书列表</h2>
        <p>欢迎 : <span th:text="${session.userInfo.username}" th:if="${!#strings.isEmpty(session.userInfo)}"></span></p>
    </div>
    <div>
        <form th:action="@{/book/modify}" method="post">
            <input type="hidden" name="id" th:value="${book.id}"> <p />
            名称 :<input type="text" name="bookName" th:value="${book.getBookName()}">  <p />

            作者 :<input type="text" name="bookAuthor" th:value="${book.bookAuthor}">  <p />

            价格 :<input type="text" name="bookPrice" th:value="${book.bookPrice}">  <p />

            库存 :<input type="text" name="bookStore" th:value="${book.bookStore}">  <p />

            上架时间 :<input type="text" name="bookOnsaleDate"  readonly onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})"    th:value="${#dates.format(book.bookOnsaleDate,'yyyy-MM-dd HH:mm:ss')}">  <p />

            类型 :
            <select name="bookCategory">
                <option value="-1">==请选择==</option>
                <option th:each="c : ${clist}" th:value="${c.id}" th:text="${c.categoryName}" th:selected="${c.id == book.bookCategory}" ></option>
            </select>  <p />

            <input type="submit" value="保存" />
        </form>
    </div>




</div>
</body>
</html>